package com.z.service.impl;

import com.z.entity.AuRoles;
import com.z.mapper.AuRolesMapper;
import com.z.service.AuRolesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zz
 * @since 2021-08-13
 */
@Service
public class AuRolesServiceImpl extends ServiceImpl<AuRolesMapper, AuRoles> implements AuRolesService {

    @Autowired
    AuRolesMapper auRolesMapper;


    @Override
    public List<AuRoles> getAssignedRoleByAdminId(Integer adminId) {

        return auRolesMapper.selectRolesByUserId(adminId);
    }
}
